package com.example.hxds.bff.driver.feign;

import com.example.hxds.bff.driver.controller.form.*;
import com.example.hxds.common.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;


/**
 * 代理司机微服务api
 */
@FeignClient(value = "hxds-dr")
public interface DrServiceApi {

    /**
     * 新增司机
     * @param form
     * @return
     */
    @PostMapping("/driver/registerNewDriver")
    R registerNewDriver(RegisterNewDriverForm form);


    /**
     * 司机认证
     * @param form
     * @return
     */
    @PostMapping("/driver/updateDriverAuth")
    R updateDriverAuth(UpdateDriverAuthForm form);


    /**
     * 创建司机人脸模型
     * @param form
     * @return
     */
    @PostMapping("/driver/createDriverFaceModel")
    R createDriverFaceModel(CreateDriverFaceModelForm form);


    /**
     * 登录
     * @param form
     * @return
     */
    @PostMapping("/driver/login")
    R login(LoginForm form);


    /**
     * 查询司机基本信息
     * @param form
     * @return
     */
    @PostMapping("/driver/searchDriverBaseInfo")
    R searchDriverBaseInfo(SearchDriverBaseInfoForm form);


    /**
     * 查询司机设置信息
     * @param form
     * @return
     */
    @PostMapping("/settings/searchDriverSettings")
    R searchDriverSettings(SearchDriverSettingsForm form);


    /**
     * 查询司机认证信息
     * @param form
     * @return
     */
    @PostMapping("/driver/searchDriverAuth")
    public R searchDriverAuth(SearchDriverAuthForm form);
}
